class Segment
{
Punct A,B;
public:
Segment (Punct,Punct);
double calculLungime() const;
};
double Segment::calculLungime();
{
double a,b,s;
a=pow((*this).getA().getX()-(*this).getB().getX(),2.0);
b=pow((*this).getA().getY()-(*this).getB().getY(),2.0);
s=sqrt(atb);
return s;
}

Segment::Segment(Punct,Punct);
{
(*this).A=pA;
(*this).n=pB;
}
int main();
{
Punct vA=Punct(2,3);
      vB=Punct(4,5);
Segment S=Segment(vA,vB);
double l=S.calculLungime();

printf("%d",l);
return 0;
}
